package com.oig.sys.file.api.fallback;

import com.oig.common.module.SysRequest;
import com.oig.common.module.SysResponse;
import com.oig.sys.file.api.FileInfoService;
import com.oig.sys.file.dto.BusFileInfoDto;
import com.oig.sys.file.dto.FileInfoDto;
import com.oig.sys.file.vo.FileInfoVo;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

@Slf4j
public class FileInfoServiceFallBackImpl implements FileInfoService {
    @Setter
    private Throwable cause;


    @Override
    public FileInfoVo addFileInfo(FileInfoDto fileInfoDto) {
        log.error("add FileInfo feign error", cause);
        return null;
    }

    @Override
    public FileInfoVo updateFileInfo(FileInfoDto fileInfoDto) {
        log.error("update FileInfo feign error", cause);
        return null;
    }

    @Override
    public List<FileInfoVo> updateRelationAllFileInfo(BusFileInfoDto busFileInfoDto) {
        log.error("update relation all FileInfo feign error", cause);
        return null;
    }

    @Override
    public SysResponse<String> delRelationAllFileInfo(BusFileInfoDto busFileInfoDto) {
        log.error("delete relation all FileInfo feign error", cause);
        return null;
    }

    @Override
    public FileInfoVo cancelFileInfo(Integer id) {
        log.error("cancel FileInfo feign error", cause);
        return null;
    }

    @Override
    public SysResponse<Integer> delFileInfo(Integer id) {
        log.error("del FileInfo feign error", cause);
        return null;
    }

    @Override
    public FileInfoVo info(Integer id) {
        log.error("get FileInfo feign error", cause);
        return null;
    }

    @Override
    public List<FileInfoVo> list(SysRequest<FileInfoDto> fileInfoRequest) {
        log.error("list FileInfo feign error", cause);
        return null;
    }


    @Override
    public List<FileInfoVo> addBatchFile(List<FileInfoDto> fileInfoDtoList) {
        log.error("addBatchFile feign error", cause);
        return null;
    }

}
